
	
function wrapperInit(){
	
	function routeFunWrapper(types){
		types.forEach((type)=>{
			let  fun = uni[type];
			// 路由跳转
			uni[type] = function (opt){
				opt.url = `/pages/${opt.url}`;
				uni['_'+type] = fun
				fun(opt)
			}
		})
		
	}
	routeFunWrapper(['navigateTo','reLaunch','redirectTo','switchTab'])
}
export default {
				wrapperInit
			}